package com.example.springsecurity.mapper;

import com.example.springsecurity.entity.SystemUser;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springsecurity.entity.SystemRoleMenu;
import org.apache.ibatis.annotations.Select;

/**
 * 角色菜单关联表(SystemRoleMenu)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-20 14:28:39
 */
@Mapper
public interface SystemRoleMenuMapper extends BaseMapper<SystemRoleMenu> {

    @Select("SELECT su.*  FROM system_role_menu su where su.role_id = #{userPhone}")
    SystemUser selectUserInfoByUserPhone(String userPhone);
}
